﻿using System;
using Game1942.Library.Background;
using Game1942.Library.Background.Bodies;

namespace Game1942.Library.Weapons
{
    class Rocket : Ammo
    {
        public Rocket(bool playerTeam): base(playerTeam)
        {
            manageTurn.SetSpeed(Constants.Rocket.Speed);
            damage = Constants.Rocket.Damage;
            body = new Square(Constants.Rocket.Width, Constants.Rocket.Height);
            position.SetBody(body);
            flightPlan.Speed = Constants.Rocket.Speed;
        }

        public Rocket(Point aPosition, bool playerTeam)
            : this(playerTeam)
        {
            base.SetPosition(aPosition);
        }
    }
}
